CC=g++
CFLAGS=-Wall

OBJS = VO_AAMBasic.o VO_AAM.o VO_AAMShape2D.o VO_AAMTexture2D3C.o VO_AAMWarpingPoint.o VO_ASM.o VO_Common.o VO_IO.o AAMConsole.o utils.o

LIBS = -L/usr/lib `pkg-config --libs opencv` -lboost_filesystem -lboost_system
INCLUDES = -I/usr/local/include/opencv -I/usr/include/boost/filesystem

#all: AAMBuilding
all: aamc

aamc : aamc.cpp $(OBJS)
	$(CC) aamc.cpp -o aamc $(OBJS) $(LIBS) $(INCLUDES)
AAMConsole.o : AAMConsole.cpp
	$(CC) -c AAMConsole.cpp $(LIBS) $(INCLUDES)
#AAMBuilding: AAMBuilding.cpp $(OBJS)
#	$(CC) AAMBuilding.cpp -o AAMBuilding $(OBJS) $(LIBS) $(INCLUDES)
VO_AAMBasic.o : VO_AAMBasic.cpp
	$(CC) -c VO_AAMBasic.cpp $(LIBS) $(INCLUDES)
VO_AAM.o: VO_AAM.cpp
	$(CC) -c VO_AAM.cpp $(LIBS) $(INCLUDES)
VO_AAMShape2D.o: VO_AAMShape2D.cpp
	$(CC) -c VO_AAMShape2D.cpp $(LIBS) $(INCLUDES)
VO_AAMTexture2D3C.o : VO_AAMTexture2D3C.cpp
	$(CC) -c VO_AAMTexture2D3C.cpp $(LIBS) $(INCLUDES)
VO_AAMWarpingPoint.o : VO_AAMWarpingPoint.cpp
	$(CC) -c VO_AAMWarpingPoint.cpp $(LIBS) $(INCLUDES)
VO_ASM.o : VO_ASM.cpp
	$(CC) -c VO_ASM.cpp $(LIBS) $(INCLUDES)
VO_Common.o : VO_Common.cpp
	$(CC) -c VO_Common.cpp $(LIBS) $(INCLUDES)
VO_IO.o : VO_IO.cpp
	$(CC) -c VO_IO.cpp $(LIBS) $(INCLUDES)
utils.o: utils.cpp
	$(CC) -c utils.cpp
clean:
	rm -f AAMBuilding *.o

